<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>Yooes管理中心</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="/sys-admin/css/general.css" rel="stylesheet" type="text/css">
<link href="/sys-admin/css/main.css" rel="stylesheet" type="text/css">
<script src="/sys-admin/js/jquery.js" type="text/javascript"></script>
<script src="/sys-admin/js/cn_message.js" type="text/javascript"></script>
<script src="/sys-admin/js/validate.js" type="text/javascript"></script>
</head>
<body>
<h1><span class="action-span1">商品分类修改</span></h1>
<div class="list-div">
<form action="/sys-admin/action/goods/category.php" method="post">
<input type="hidden" name="met" value="edit"/>
<input type="hidden" name="id" value="<{$category.cat_id}>"/>
<table>
 <tr>
    <td class="label"><span class="require-field">*</span>名称</td>
    <td><input type="text" name="name" maxlength="40" value="<{$category.cat_name}>" size="20" vtype="required" vname="cate_add_name"/><span id="cate_add_name_m"></span></td>
 </tr>
 <tr>
    <td class="label">父分类</td>
    <td><select name="parentid">
    <option value="0">顶级分类</option>
    <{foreach from=$categorys item=child0}>
        <{if $child0.cat_id neq $category.cat_id}>
		    <option value="<{$child0.cat_id}>" <{if $child0.cat_id eq $category.parent_id}>selected="selected"<{/if}>><{$child0.cat_name}></option>  
		    <{if $child0.childs|@count gt 0}>
		  		<{foreach from=$child0.childs item=child1}>
		  			 <{if $child1.cat_id neq $category.cat_id}>
		  			 	<option value="<{$child1.cat_id}>" <{if $child1.cat_id eq $category.parent_id}>selected="selected"<{/if}>>　　　<{$child1.cat_name}></option>  
		  			 <{/if}>
		  		<{/foreach}>
	  		<{/if}>
	  	<{/if}>
	<{/foreach}> 
    </select>
    </td>
 </tr>
 <tr>
    <td class="label">单位</td>
    <td><input type="text" name="unit" maxlength="30" value="<{$category.cat_unit}>"  size="20"/></td>
 </tr>
 <tr>
    <td class="label">显示</td>
    <td>
		<select name="isshow">
	       <option value="1" <{if $category.is_show eq 1}>selected="selected"<{/if}>>是</option>
	       <option value="0" <{if $category.is_show eq 0}>selected="selected"<{/if}>>否</option>
         </select>
   </td>
 </tr>
  <tr>
    <td class="label">菜单显示</td>
   <td>
		<select name="isshownav">
	       <option value="1" <{if $category.is_show_nav eq 1}>selected="selected"<{/if}>>是</option>
	       <option value="0" <{if $category.is_show_nav eq 0}>selected="selected"<{/if}>>否</option>
         </select>
   </td>
 </tr>
 <tr>
    <td class="label">排序</td>
    <td><input type="text" name="sortorder" maxlength="4" value="<{$category.sort_order}>" size="6"  vtype="not-required-n" vname="sort_order"/><span id="sort_order_m"></span></td>
  </tr>
 <tr>
    <td class="label"></td>
    <td>
      <input type="submit"  name="Submit"   value="保存 " class="button" onclick="return checkForm();"/>&nbsp;&nbsp;&nbsp;
   </td>
  </tr>
  </table>
 </form>
</div>
</body></html>